module.exports = {
  devServer: {
    port: 8080,
    proxy: {
      "^/api": {
        target: "http://capi.douyucdn.cn",
        changeOrigin: true,
      },
      "^/livedetail": {
        target: "http://open.douyucdn.cn",
        changeOrigin: true,
        pathRewrite: { "^/livedetail": "" },
      },
    },
  },
};
